import Vue from 'vue';


let baseUrl = 'http://ovo.chinawayltd.com/gateway';
if(location.host.indexOf('localhost') > -1) {
    baseUrl = '/gateway';
} else if (location.host.indexOf('test') > -1) {
    baseUrl = 'http://ovo.test.chinawayltd.com/gateway';
}


// api example
export const apiGetExample = () => {
    return Vue.$axios({
        method: 'get',
        url: `${baseUrl}/xxx`,
    });
};
